<?php

namespace App\Http\Validations\Admin;

use Illuminate\Contracts\Validation\Validator;

class UserGroupValidation {
    public function create() {
        $rules = [
            'name'=>['required'],
        ];
        return ['rules' =>$rules,
            'attributes' => [
                'name'=>'用户组名称'
            ],
            'messages' => []
        ];
    }

    //验证后添加的钩子函数
    public function customValidate(Validator $validator) {
        //
    }
}
